<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ page session="true"%>
<%@page import="java.util.*"%>
<%@page import="tr.com.argela.tap.mot.models.TestPoint"%>
<%@page import="tr.com.argela.tap.mot.models.TestCase"%>
<%@page import="tr.com.argela.tap.mot.models.Module"%>
<%@page import="tr.com.argela.tap.mot.models.User"%>
<%@page import="tr.com.argela.tap.mot.dao.TestPointDao"%>
<%@page import="tr.com.argela.tap.mot.dao.ProjectDao"%>
<%@page import="java.sql.*"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
   <html>
<head>

<title>JSP Page</title>
<link rel="stylesheet" type="text/css" href="style/styles.css">
</head>
<body>
 
  <%
     User user = (User)request.getSession().getAttribute("userObject");
     String name = user.getName();
     Long id = user.getId();
%>
  <h4 align="right"><%=name%></h4>
  <h5 align="right"><a href="logout.jsp">Log out</a></h5>
       <dıv> <h1 align="center">MOT</h1><h5 align="center">Memory Of Testing</h5></dıv>


     <div align="left">
        <table align="left"><tr><td>
        <h3><a href="analystModel.jsp?id=<%=id%>">Modules</a></h3></td></tr><tr><td>
        <h3><a href="analystPoint.jsp?id=<%=id%>">Test points</a></h3></td></tr><tr><td>
        <h3><a href="analystCase.jsp?id=<%=id%>">Test Cases</a></h3></td></tr><tr><td>
        <h3><a href="export.jsp?id=<%=id%>">Export Document</a></h3></td></tr>
        </table></div>
       <dıv align="right">
        
<%
TestCase testcase = (TestCase)request.getSession().getAttribute("case");
if(testcase==null)
{	
	response.sendRedirect("home2.jsp");
	return;
}

//TestPointDao pointDao = new TestPointDao();
//TestPoint testpoint = pointDao.checkpoint(pointId);


%>



<table border="2" align="center">

<tr>
<th align="center" colspan="2">Test Case <%=testcase.getName()%>'s properties</th>
</tr>
<tr>
<th>Name</th>
<td><%=testcase.getName()%></td>
</tr>
<tr>
<th>Bussiness Requirement</th>
<td><%=testcase.getBreq()%></td>
</tr>
<tr>
<th>Test Point Name</th>
<td><%=testcase.getTestPoint().getName()%></td>
</tr>
<tr>
<th>Description</th>
<td><%=testcase.getDescription()%></td>
</tr>
<tr>
<th>Precondition</th>
<td><%=testcase.getPrecondition()%></td>
</tr>
<tr>
<th>Expected Result</th>
<td><%=testcase.getExpectedRes()%></td>
</tr>
<tr>
<th>Check Items</th>
<td><%=testcase.getCheck()%></td>
</tr>
<tr>
<th>Result</th>
<td><%=testcase.getResult()%></td>
</tr>
<tr>
<th>Notes</th>
<td><%=testcase.getNotes()%></td>
</tr>
<tr>
<th>Art No</th>
<td><%=testcase.getArtno()%></td>
</tr>
<tr>
<th>User Name</th>
<td><%=testcase.getUser().getName()%></td>
</tr>
</table>


	    </dıv>
</body>
</html>